package com.link.base.base.approval.service;

import com.link.base.base.approval.model.UsersSelect;
import com.link.base.base.user.model.User;
import com.link.core.basic.query.QueryParams;
import com.link.core.basic.service.BasicService;

import java.util.List;
/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author  unknwon
 * @date:   2018/11/8 15:10
 * @version 1.0
 */

public interface UsersSelectService extends BasicService<UsersSelect> {

    /**
     * 查询用户范围
     * @param  approvalNodeId
     * @param  userId
     * @return
     * @throws Exception
     */
    public List<User> queryUsers(Long approvalNodeId, Long userId) throws Exception;

    /**
     * 分页查询用户列表
     *
     * @param approvalNodeId
     * @param userId
     * @param qps
     * @return
     * @throws Exception
     */
    public List<User> queryUsersPage(Long approvalNodeId, Long userId, QueryParams qps) throws Exception;

}
